package com.vq.service;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.vq.entity.CollectNote;
import com.vq.mapper.CollectNoteMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CollectNoteService {
    @Autowired
    CollectNoteMapper collectNoteMapper;

    public List<CollectNote> selectByAccount(String account) {
        LambdaQueryWrapper<CollectNote> lqw = new LambdaQueryWrapper<>();
        lqw.eq(CollectNote::getAccount, account);
        return collectNoteMapper.selectList(lqw);
    }
}
